package com.bytedance.dao;

import com.bytedance.dataobject.A;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ADAO {

    @InsertProvider(type = AProvider.class, method = "insertSQL")
    int addA(A a);

    @UpdateProvider(type = AProvider.class, method = "updateSQL")
    int updateA(A a);

    @SelectProvider(type = AProvider.class, method = "selectByIdSQL")
    A getAById(String A);

    @DeleteProvider(type = AProvider.class, method = "deleteByIdSQL")
    int deleteAById(String A);

    @InsertProvider(type = AProvider.class, method = "insertListSQL")
    int addAList(@Param(value = "aList") List<A> aList);

    @SelectProvider(type = AProvider.class, method = "selectLikeIdSQL")
    List<A> getAList(String id);

    @SelectProvider(type = AProvider.class, method = "selectCountSQL")
    int getCount(String column);
}
